/* 
 *  <copyright file="JoystickMove.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;

using SobrietyEngine.Input;

namespace SobrietyEngine.Events.Input
{
    public class JoystickMove : BaseInput, IEventData
    {
        public Boolean Right = false;
        public Boolean Left = false;
        public float X = 0;
        public float Y = 0;

        public JoystickMove(IInputDevice device, Boolean rightJoystick, float x, float y)
            : base(device)
        {
            if (rightJoystick)
                Right = true;
            Left = !Right;
            X = x;
            Y = y;
        }

    }
}